package com.entity.user;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("role")
public class Role {

    @ApiModelProperty(value = "角色ID，主键，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色名称，唯一，必填（如 ROLE_ADMIN）")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "角色描述，可选")
    @TableField("description")
    private String description;
}